begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = 1;
	question = "Hoppston";
	text1 = "This man is sitting by a campfire, anxiously darting his eyes back and forth.  True enough, he's unarmed.  He seems relieved.  Given that he isn't a brigand, that is understandable.";
	text2 = "_Man...  Thank goodness I found you.  Now maybe I can boat on out of here.  But where are my manners?  I'm Hoppston.  I was supposed to let some of Sunset Creek's better units do some recon, but they haven't come back yet._";
	text3 = "_It's been far too long at this point, and I want to get out of here._";
	text5 = "Hoppston is still sitting here anxiously.";
	code = 
		if(get_flag(0,2) == 0){
			remove_string(5);
			remove_string(6);
			remove_string(7);
			remove_string(8);
			set_flag(0,2,1);
		}
		else{
			remove_string(1);
			remove_string(2);
			remove_string(3);
			remove_string(4);
		}
break;

begintalknode 2;
	state = 1;
	nextstate = 2;
	question = "How's Sunset Creek holding out?";
	text1 = "He turns his head behind him.  The city is mostly visible across the river.";
	text2 = "_Well, it's still there.  Unfortunately, the bridge is out, and the brigands have taken control of the farms.  We have a ramshackle wall, but it's tough to hold._";

begintalknode 3;
	state = 2;
	nextstate = -1;
	question = "How do you keep fed?";
	text1 = "_Simple- we fish.  That, and we scavenge what little we can.  But the farmers aren't too anxious to let us have anything._";
	text2 = "_Not that I blame the farmers, either- if they're caught trying to get us any rations, they get slain.  Not fun._";

begintalknode 4;
	state = 2;
	nextstate = -1;
	question = "How long will the wall hold out?";
	text1 = "He shakes his head.  _Tough to say.  On the one hand, Sunset Creek has a large supply of sturdy, fire-retardant wood.  On the other hand, the brigands have numbers- and from whence, I haven't the slightest._";

begintalknode 5;
	state = 1;
	nextstate = -1;
	condition = get_flag(16,0) > 0;
	question = "Were there four people with you?";
	text1 = "_...so.  They're dead.  Not that I hadn't figured that already, but it's good to have it confirmed._";

begintalknode 6;
	state = 1;
	nextstate = -1;
	question = "What kind of boat is THAT?";
	text1 = "_Well, I call her Ten Slayer.  We got her by killing an encampment of ten brigands._";
	text2 = "_Are you asking me how she works?  I haven't the slightest clue.  All I know is, she's not the only one of her type.  The brigands use these babies to patrol the waters like sharks._";
	text3 = "_She seems to run off of some sort of motor.  All I know is, whatever keeps Ten Slayer going, it hasn't run out yet._";
	text4 = "_And I'm not totally sure of what all of her controls are, but I know enough to get from point A to point B._";
	code = 
		if(get_flag(20,0) == 0)
			set_flag(20,0,1);
break;

begintalknode 7;
	state = 1;
	nextstate = -1;
	condition = party_size() == 1;
	question = "Why do you need my help?";
	text1 = "He shakes his head.  _This boat isn't the only one of its kind; the brigands have many.  And since they don't want any word getting from Sunset Creek to anywhere else, they patrol these waters fiercely._";
	text2 = "_So far, we haven't received any help, and we haven't confirmed if anyone has gotten outside of brigand-held territory._";
	text3 = "_Honestly, we've exhausted everything except for a few fishing boats- if you want to call them that.  I wouldn't.  Ten Slayer is practically our only way to use the waters._";
	text4 = "_And if I were to cross here alone, I'd get ambushed and crushed.  Which is why I need your help._";
	code = 
		if(get_flag(21,0) == 0)
			set_flag(21,0,1);
break;

begintalknode 8;
	state = 1;
	nextstate = -1;
	condition = party_size() > 1;
	question = "Why do you need our help?";
	text1 = "He shakes his head.  _This boat isn't the only one of its kind; the brigands have many.  And since they don't want any word getting from Sunset Creek to anywhere else, they patrol these waters fiercely._";
	text2 = "_So far, we haven't received any help, and we haven't confirmed if anyone has gotten outside of brigand-held territory._";
	text3 = "_Honestly, we've exhausted everything except for a few fishing boats- if you want to call them that.  I wouldn't.  Ten Slayer is practically our only way to use the waters._";
	text4 = "_And if I were to cross here alone, I'd get ambushed and crushed.  Which is why I need your help._";
	code = 
		if(get_flag(21,0) == 0)
			set_flag(21,0,1);
break;

begintalknode 9;
	state = 1;
	nextstate = -1;
	condition = (get_flag(20,0) == 1) && (get_flag(21,0) == 1);
	question = "Okay, let's go.";
	text1 = "He nods.  _I thought you'd see it my way, what with no other way for you to cross...  But never mind that.  I'm getting inside of the boat.  Follow me._";
	action = END_TALK;
	code = 
		set_flag(19,0,2);
		erase_char(6);
		set_terrain(23,16,421);
break;

